package thu.cs.segroup.agent;

import jade.wrapper.AgentContainer;
import jade.wrapper.AgentController;
import jade.wrapper.StaleProxyException;

public class EnvironmentInit {

	public static void main(String[] args) {
		AgentRuntime runtime = new AgentRuntime();
		AgentContainer container = runtime.getAgentContainer();
		
		try {
			AgentController rma = container.createNewAgent("rma", "jade.tools.rma.rma", new Object[0]);
			rma.start();
			AgentController coordinator = container.createNewAgent("Coordinator", Coordinator.class.getName(), null);
			AgentController runner = container.createNewAgent("Runner", Runner.class.getName(), null);
			coordinator.start();
			runner.start();
		} catch (StaleProxyException e) {
			e.printStackTrace();
		}

	}
}
